import request from '../lib/request.js'

export function getAreaAll(){
	return request({url:'/api/admin/area/all',method:'get'});
}

export function setProductArea(data){
	return request({url:'/api/admin/area/product/set',method:'post',data:data});
}
export function index(params){
	return request({url:'/api/admin/area/index',method:'get',params:params});
}
export function create(data){
	return request({url:'/api/admin/area/create',method:'post',data:data});
}
export function update(data){
	return request({url:'/api/admin/area/update',method:'post',data:data});
}
export function edit(data){
	return request({url:'/api/admin/area/edit',method:'post',data:data});
}
export function find(params){
	return request({url:'/api/admin/area/info',method:'get',params:params});
}